package com.offcn.oss.controller;


import com.offcn.oss.service.OssService;

import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import javax.annotation.Resource;
import java.util.Map;


@RestController
@RequestMapping("/thirdparty/oss")
public class OssController {

    @Resource
    private OssService ossService;

    /**
     * 上传图片文件
     * @return
     */
    @RequestMapping("/getPolicy")
    public Map<String, String> uploadFile(){
        Map<String, String> respMap = ossService.uploadFile();
        return respMap;

    }
}
